package com.ytzq.web.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * HTTP请求的Action接口
 * @author 门士松  20121228
 * @version 1.0
 * @since
 */
public interface  Action {
	/** 初始化处理*/
	public void init(HttpServletRequest request,HttpServletResponse response) throws Exception;
    /**在调用相应的方法前调用,在进入方法前做一些处理 */
    public void before(HttpServletRequest request,HttpServletResponse response);
    /** 在调用相应的之后调用,在离开方法后再进行一些相应的处理*/
    public void after(HttpServletRequest request,HttpServletResponse response);
}